package com.jh.user.pojo.enums;

public enum ShopRegisterStatusEnums {
    VERIFY(1, "审核中"),
    FRIST_ERROR(2, "后台审核失败"),
    JF_VERIFY(3, "即付审核中"),
    JF_ERROR(4, "即付审核失败"),
    SUCCESS(5, "审核成功");

    ShopRegisterStatusEnums(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private int value;

    private String desc;


    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDesc(int value) {
        ShopRegisterStatusEnums[] shopRegisterStatusEnums = ShopRegisterStatusEnums.values();
        for (ShopRegisterStatusEnums statusEnums : shopRegisterStatusEnums) {
            if (statusEnums.getValue() == value) {
                return statusEnums.getDesc();
            }
        }
        return "";
    }
}
